package com.example.service;

import com.example.dto.CategoryQueryVO;
import com.example.entity.CategoryInfo;
import com.example.mapper.CategoryMapper;
import com.example.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CategoryServiceImpl implements CategoryService {

    @Autowired
    private CategoryMapper categoryMapper;

    @Override
    public List<CategoryInfo> listByQuery(CategoryQueryVO vo) {
        return categoryMapper.selectByQuery(vo);
    }
}
